public class Date {
    public int year;
    public int mouth;
    public int day;
    public void setDate(int y,int m,int d){
        year =y;
        mouth=m;
        day=d;
    }
    public void printDate(){
        System.out.println(year+"年"+mouth+"月"+day+"日");
    }

    public static void main(String[] args) {
        Date date=new Date();
        date.setDate(2024,8,23);
        date.printDate();
    }
}
